9.8
CRITICAL CVSS 3.1
CVE-2025-27154
Spotify Cache File Permission Weakness
Description

Spotipy is a lightweight Python library for the Spotify Web API. The `CacheHandler` class creates a cache file to store the auth token. Prior to version 2.25.1, the file created has `rw-r--r--` (644) permissions by default, when it could be locked down to `rw-------` (600) permissions. This leads to overly broad exposure of the spotify auth token. If this token can be read by an attacker (another user on the machine, or a process running as another user), it can be used to perform administrative actions on the Spotify account, depending on the scope granted to the token. Version 2.25.1 tightens the cache file permissions.

INFO

Published Date :

Feb. 27, 2025, 2:15 p.m.

Last Modified :

April 7, 2025, 6:24 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-27154 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Spotipy_project spotipy
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL [email protected]
CVSS 4.0 HIGH [email protected]
Solution
Update Spotipy library to version 2.25.1 to restrict cache file permissions.
  • Update the Spotipy library to version 2.25.1 or later.
  • Ensure cache files have restrictive permissions (600).
  • Review existing cache files for unauthorized access.
  • Rotate any compromised authentication tokens.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-27154 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-27154 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-27154 vulnerability anywhere in the article.

  • Cybersecurity News
Windows Hyper-V Zero-Day CVE-2025-21333: PoC Drops, SYSTEM Access Exposed

Security researcher Alessandro Iandoli has published a proof-of-concept (PoC) exploit for CVE-2025-21333, a zero-day vulnerability in Windows Hyper-V that has been actively exploited in attacks. The f ... Read more

Published Date: Mar 03, 2025 (5 months, 4 weeks ago)
  • Cybersecurity News
CVE-2025-27154: Spotipy Vulnerability Exposes Spotify Auth Tokens

Spotipy, a popular Python library for interacting with the Spotify Web API, recently addressed a security vulnerability that could have exposed users’ authentication tokens. The vulnerability, identif ... Read more

Published Date: Mar 03, 2025 (5 months, 4 weeks ago)

The following table lists the changes that have been made to the CVE-2025-27154 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Apr. 07, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:spotipy_project:spotipy:*:*:*:*:*:*:*:* versions up to (excluding) 2.25.1
    Added Reference Type GitHub, Inc.: https://github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py#L93-L98 Types: Product
    Added Reference Type GitHub, Inc.: https://github.com/spotipy-dev/spotipy/commit/1ca453f6ef87a2a9e9876f52b6cb38d13532ccf2 Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/spotipy-dev/spotipy/releases/tag/2.25.1 Types: Release Notes
    Added Reference Type CISA-ADP: https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599 Types: Exploit, Vendor Advisory
    Added Reference Type GitHub, Inc.: https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599 Types: Exploit, Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Feb. 27, 2025

    Action Type Old Value New Value
    Added Reference https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599
  • New CVE Received by [email protected]

    Feb. 27, 2025

    Action Type Old Value New Value
    Added Description Spotipy is a lightweight Python library for the Spotify Web API. The `CacheHandler` class creates a cache file to store the auth token. Prior to version 2.25.1, the file created has `rw-r--r--` (644) permissions by default, when it could be locked down to `rw-------` (600) permissions. This leads to overly broad exposure of the spotify auth token. If this token can be read by an attacker (another user on the machine, or a process running as another user), it can be used to perform administrative actions on the Spotify account, depending on the scope granted to the token. Version 2.25.1 tightens the cache file permissions.
    Added CVSS V4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-276
    Added Reference https://github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py#L93-L98
    Added Reference https://github.com/spotipy-dev/spotipy/commit/1ca453f6ef87a2a9e9876f52b6cb38d13532ccf2
    Added Reference https://github.com/spotipy-dev/spotipy/releases/tag/2.25.1
    Added Reference https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 8.4
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
VS Confidentiality
VS Integrity
VS Availability
SS Confidentiality
SS Integrity
SS Availability
Base CVSS Score: 9.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact